package com.chuangjiangx.member.common.utils.AIFace;

/**
 * Created by chuangjiangzqq on 2018/9/17.
 */
public class AIConstant {

    /**
     * AI返回正确时统一为0000
     */
    public  static final String CODE_SUCCESS = "0000";

    public static final String PROD_HOST = "http://60.191.110.42:5800";
    public static final String TEST_HOST = "http://60.191.110.43:5600";

    public static class AiFaceUrl{

        public static final String RECOGNITION_URL;

        public static final String DELETE_FACE;

        public static final String INPUT_FACE;

        public static final String PRE_INPUT_FACE;

        public static final String UPDATE_FACE;

        static {
            String customer_product_id = System.getProperty("CUSTOMER_PRODUCT_ID");
            String host = PROD_HOST;
            if("10815".equals(customer_product_id)){
                host = TEST_HOST;
            }
            RECOGNITION_URL = host + "/aiface/recognition";

            DELETE_FACE = host + "/aiface/deleteMember";

            INPUT_FACE = host + "/aiface/collect";

            PRE_INPUT_FACE = host + "/aiface/precollect";

            UPDATE_FACE = host + "/aiface/updateCollect";
        }

    }

}
